package com.xjy.common.util;

import java.text.SimpleDateFormat;
import java.util.Calendar;

/**
 * 时间处理类
 * @author jyxiao
 *
 */
public class DateUtil {
	public static SimpleDateFormat YMD=new SimpleDateFormat("yyyy-MM-dd");
	public static String now(){
		return YMD.format(Calendar.getInstance().getTime());
	}
	public static String getTime(int day){
		Calendar calendar=Calendar.getInstance();
		calendar.add(Calendar.DAY_OF_YEAR, day);
		return YMD.format(calendar.getTime());
	}
	
}
